package org.example.boot.ioc.demo;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
@Data
public class ClassRoom {
    @Value("${classroom.id}")
    private Integer id;
    @Value("${classroom.name}")
    private String name;
}
